package com.sphd.emanu.activity.finance;

import android.content.Context;

import com.sphd.emanu.mvp.BasePresenterImpl;
import com.sphd.emanu.pojo.HomeFragmentInfo;
import com.wzutils.L;

import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;

/**
 * MVPPlugin
 *  邮箱 784787081@qq.com
 */

public class FinancePresenter extends BasePresenterImpl<FinanceContract.View> implements FinanceContract.Presenter{

    @Override
    public void financialHomepage(int oid) {
        emanuService.financialHomepage(oid).enqueue(new Callback<HomeFragmentInfo>() {
            @Override
            public void onResponse(Call<HomeFragmentInfo> call, Response<HomeFragmentInfo> response) {
                L.e(response.toString());
                   mView.setBeanBack(response.body());
                if (!call.isCanceled()) {
                }
            }

            @Override
            public void onFailure(Call<HomeFragmentInfo> call, Throwable t) {
                Error(t);
            }
        });
    }
}
